<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>test</title>
</head>

<body>

</body>

</html>
<script src="./ajax.js"></script>
<script>
    ajax({
        url: 'http://www.chst.vip:1902/students/getstulist'
    }).then(res => {
        console.log(res.data);
    })

    ajax({
        url: 'http://www.chst.vip:1902/students/addlist',
        method: 'post',
        data: { content: '赖思怡怎么老是睡觉', name: '11' }
    }).then(res => {
        console.log(res);
    })

   /*  ajax({
        url: 'http://www.chst.vip:1902/students/del',
        data: { id :'xDip32019227'}
    }).then(res => {
        console.log(res);
    }) */


</script>